﻿using System;
using System.Collections.Generic;
using System.Windows.Forms;

namespace ShowDisplayElementControl
{
    /// <summary>
    /// Comparer of ShowDisplayElement objects for ObjectiveListBox
    /// </summary>
    public class ItemComparer : IComparer<Control>
    {
        int IComparer<Control>.Compare(Control x, Control y)
        {
            return String.Compare(((ShowDisplayElement)x).ShowName, ((ShowDisplayElement)y).ShowName);
        }
    }
}
